Contents | Index | < Browse | Browse >
LETTERraiseULETTER
Generates a signal.
Overview
#include <signal.h>
r = raise(signal_number);
int r;
int signal_number;
Portability
ANSI
Description
Generates the signal "signal_number". This will call a function which must
have been previously defined using signal.
The following signals are allowed:
SIGABRT to abort the program.
SIGFPE for floating-point exceptions.
SIGILL if an illegal instruction was encountered.
SIGINT for a software interrupt.
SIGSEGV for an illegal memory access.
SIGTERM for normal program termination.
StormC only uses the SIGABRT signal inside its abort function, the
other signals are unused.
Note that this function has nothing to do with Exec's Signal() which sends
a real multitasking signal to another task and which works asynchronously.
raise instead is nothing else than a synchronous call to a function out of
a function table. Additionally, it only allows you to treat certain software
events globally.
See also
signal